package cn.tedu.oop;

public class TestPhone {
    public static void main(String[] args) {
        Phone2 p=new Phone2();
        System.out.println(p.brand="iphone");
        System.out.println(p.price);
        System.out.println(p.color);
        System.out.println(p.size);
        p.call();
        p.message();
        p.video();

    }
}

class Phone2{
    String brand;
    String color;
    int size;
    int price;
    public void message(){
        System.out.println("正在发短信~");
    }
    public void call(){
        System.out.println("正在打电话~");
    }
    public void video(){
        System.out.println("正在看直播~");
    }
}
